﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace GolfLeague.Models
{
    [MetadataType(typeof(TeeBox_Validation))]
    public partial class TeeBox
    {
    }

    public class TeeBox_Validation
    {
        [Required]
        [StringLength(50)]
        [Display(Name = "Tee Box")]
        public string TeeBoxName { get; set; }

        [Required]
        [Range(55,155)]
        public int Slope { get; set; }

        [Required]
        [Range(50.0, 100.0)]
        public decimal Rating { get; set; }
    }
}